package org.base.baseproject.common;

import java.util.Map;

public class ParamsPage {
    private long total;
    private int start;
    private int end;
    private int current = 1;
    private int pageSize = 10;
    private Object data = null;
    private Map<String, Object> params = null;

    public ParamsPage() {
    }

    public ParamsPage(long total, int current, int pageSize, Object data) {
        this.total = total;
        this.current = current;
        this.pageSize = pageSize;
        this.data = data;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
